<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript">
        // 保存
        function Save() {
            document.getElementById("PageOfficeCtrl1").WebSave();
            document.getElementById("PageOfficeCtrl1").Alert("保存成功！");
            // 给父页面传的值，fs.setCustomSaveResult("ok");
            var value = document.getElementById("PageOfficeCtrl1").CustomSaveResult;
            // 调用父页面
            var sResult = window.external.CallParentFunc("refreshList('" + value + "');");
            if (sResult === 'poerror:parentlost') {
                alert('父页面关闭或跳转刷新了，导致父页面函数没有调用成功！');
            }
            // 关闭窗口
            window.external.close();
        }

        // 另存为
        function SaveAs() {
            document.getElementById("PageOfficeCtrl1").ShowDialog(2);
        }
    </script>
    <style>
        .divFirst {
            width: 1300px;
            height: 700px;
        }

        /*宽高自适应*/
        .docInit {
            position: absolute;
            height: 100%;
            width: 100%;
            top: 6px;
            left: 5px;
        }
    </style>
</head>
<body>
<div class="divFirst">
    <div class="docInit" th:utext="${pageoffice}"></div>
</div>
</body>
</html>